package com.ly.mpayment.persist.service.ele;

import java.util.List;
import java.util.Map;

import com.ly.mpayment.persist.entity.ele.ElectronicAccount;
import com.ly.mpayment.persist.hibernate.Page;


public interface IElectronicAccountService {

	public Page<ElectronicAccount> findPageElectronic(Map<String, Object> parameters,int start,int pageSize);
	
	public ElectronicAccount findByid(String id);
	
	public boolean saveElectronicAccount(ElectronicAccount electronicAccount);
	
	public boolean updateElectronicAccount(ElectronicAccount electronicAccount);
	
	public ElectronicAccount findByNameAndPhone(String name);
	
	public ElectronicAccount findByState(String accId);
	
	public ElectronicAccount findByStateAndCity(String city);
	
	public ElectronicAccount findByIdAndName(String id,String name);
	
	/**
	 * 查询所有使用中 或者登录成功的账号信息
	 * @return
	 */
	public List<ElectronicAccount> findByState();
	
	
}
